﻿using System;

namespace hw1_0224
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("Input first number:");
            double x = double.Parse(Console.ReadLine());
            Console.WriteLine("Input calculator:");
            string cha = Console.ReadLine();
            char ch = cha[0];
            Console.WriteLine("Input another number:");
            double y = double.Parse(Console.ReadLine());
            double ans = 0;
            if (ch == '+')
            {
                ans = x + y;
            }
            else if (ch == '-') ans = x - y;
            else if (ch == '*') ans = x * y;
            else if (ch == '/')
            {
                if (y.Equals(0))
                {
                    Console.WriteLine("Wrong: divided by 0");
                    return;
                }
                else ans = x / y;
            }
            Console.WriteLine(ans);
        }
    }
}